package com.mallsystem.common.service;

import com.github.pagehelper.PageInfo;
import com.mallsystem.common.bean.Collect;
import com.mallsystem.common.exception.AllException;

public interface CollectService {
    //添加
    boolean insert(Collect collect) throws AllException;
    //删除 - 只能删除自己的收藏
    boolean delete(Integer id,Integer userId) throws AllException;
    //根据goodsId和userId查询
    Collect selectByGoodsIdAndUserId(Integer goodsId,Integer userId);
    //分页查询
    PageInfo<Collect> selectByPage(Integer pageNum, Integer pageSize,Integer userid);
}
